package com.xvyy.tingshu.user.client;

import com.xvyy.tingshu.common.result.Result;
import com.xvyy.tingshu.model.user.VipServiceConfig;
import com.xvyy.tingshu.user.client.impl.VipServiceConfigDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <p>
 * 产品列表API接口
 * </p>
 *
 * @author qy
 */
@FeignClient(
        path = "/api/rpc/userinfo",
        contextId = "vipServiceConfigFeignClient",
        value = "service-user",
        fallback = VipServiceConfigDegradeFeignClient.class)
public interface VipServiceConfigFeignClient {


    @GetMapping(value = "/getAllVipConfig/{itemId}")
    Result<VipServiceConfig> getAllVipConfig(@PathVariable(value = "itemId") Long itemId);
}